﻿{% block title %}网站列表{% endblock %}

{% block content %}
<h1>网站列表</h1>
<a href="{% url feed.views.add_site %}">添加网站</a>

<ul>
  {% for site in object_list %}
    <li>
      <a href="{% url feed.views.show_site key=site.key %}">{{ site.Site_name }} </a>
      <a href="{% url feed.views.edit_site key=site.key %}">编辑</a>
      <a href="{% url feed.views.delete_site key=site.key %}">删除</a>
    </li>
  {% endfor %}
</ul>

<div>
  {% if has_previous %}
    <a href="{% url feed.views.list_site %}?page={{ previous }}">&lt;-previous</a>
  {% endif %}
  {% if has_next %}
    <a href="{% url feed.views.list_site %}?page={{ next }}">next-&gt;</a>
  {% endif %}
</div>
{% endblock %}
